package com.javabi.htmlbuilder.css;

import java.util.ArrayList;

/**
 * A CSS Style List
 */
public class CSSStyleList extends ArrayList<CSSStyle> implements CSSElement {

	/** The serialization ID. */
	private static final long serialVersionUID = 8567837937862725441L;

	/**
	 * Append this to the given css builder.
	 * @param css the css builder.
	 * @return the css builder.
	 */
	public CSSBuilder appendTo(CSSBuilder css) {
		css.styles(this);
		return css;
	}

	@Override
	public String toString() {
		CSSBuilder css = new CSSBuilder();
		appendTo(css);
		return css.toString();
	}

}
